<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Application Registration</title>
</head>
<body>
	<%
		String err = request.getParameter("error");
		if (err != null) {
			if (err.equals("1")) {
				out.println("<b>The username "
						+ request.getParameter("username")
						+ " has been taken.<br>"
						+ "Please pick another name</b>");
			} else if (err.equals("2")) {
				out.println("<b>Please make sure you have entered the same password twice.</b>");
			} else if (err.equals("3")) {
				out.println("<b>Have you registered before? "
						+ "<a href=\"applicant/name.jsp\">Login</a> now</b>");
			}
			out.println("<br><br>");
		}
	%>
	<form name="register" method="POST" action="regConfirmation.jsp">
		<table>
			<tr>
				<td>Username</td>
				<td><input size="15" name="username" type="text" /></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><input size="15" name="password" type="password" /></td>
			</tr>
			<tr>
				<td>Retype password</td>
				<td><input size="15" name="retypepwd" type="password" /></td>
			</tr>
			<tr>
				<td>Email</td>
				<td><input size="20" name="email" type="text" /></td>
			</tr>
		</table>
		<input type="submit" value="Submit" />
	</form>
</body>
</html>